package com.kintreda.ieco_server.module.qrcode.service;

import com.kintreda.ieco_server.bean.qrcode.batch;
import com.kintreda.ieco_server.core.service.IBaseService;

import java.util.Map;

/**
 * @Created by IntelliJ IDEA
 * @Project_Name ieco_server
 * @Package com.kintreda.ieco_server.module.qrcode.service
 * @Author ZhongYao_H
 * @Date 2019/4/30:10:45
 * @Year 2019 Month 04 Day 30
 * @Date_zh 2019 年 四月 星期二
 */
public interface IBatchService extends IBaseService<batch,String> {

    /**
     * get 批次继续生成
     * @return
     */
    batch  getBatch(String batch);


    Map<String,Object> generateCodes(String domain, String url, String prefix, String batch, int num, int numberDB, boolean bat);

    /**
     * 生成代金卷
     *
     *
     * @param domain
     * @param url
     * @param prefix
     * @param batch
     * @param num
     * @param numberDB
     * @param bat
     * @return
     */
    Map<String,Object> generateKimsVolume(String domain, String url, String prefix, String batch, int num, int numberDB, boolean bat, String request);

    String supplement(String length);
}
